package org.planaz.campusvoting.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.sql.Timestamp;

@TableName("t_activity")
@Data
public class Activity {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long uid;
    private String genre;
    @TableField("start_time")
    private Timestamp startTime;
    @TableField("end_time")
    private Timestamp endTime;
    private String tittle;
    private String intro;
    private String cover;
    private String state;
    private Integer pnum;
    private Integer vnum;
    private Integer view;
}
